<template>
  <div class="root-index">
    <a-menu mode="horizontal" v-model="current" class="menu" >
      <a-menu-item key="lockManage">
        <router-link to="/root/lockManage">门锁管理(root)</router-link>
      </a-menu-item>
      <a-menu-item key="tcpLogger">
        <router-link to="/root/tcpLogger">TCP日志查询</router-link>
      </a-menu-item>
      <a-menu-item key="lockNumber">
        <router-link to="/root/lockNumber">用户卡号管理</router-link>
      </a-menu-item>
    </a-menu>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
    data() {
        return {
            current: ["lockManage"],
        }
    },
    mounted() {
        this.$router.push("/root/lockManage");
    },
    methods: {
      changeTag(){

      }
    },
}
</script>

<style scope>
.menu{
    margin-bottom: 20px;
}
</style>